<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="/mytag" prefix="yjd"%>
<body>
<div class="wrap">
<div class="nav">
	<ul class="cc">
	    <li class="current"><a href="<yjd:url url="/SetupEmail/config"/>">邮件设置</a></li>
	    <li><a href="<yjd:url url="/SetupEmail/sendMail"/>">发送邮件</a></li>
	</ul>
</div>
<form method="post" class="J_ajaxForm" autocomplete="off" action="<yjd:url url="/SetupEmail/update"/>">


<div class="h_a">邮箱配置</div>

<div class="table_full">
	<table width="100%">
		<tr>
				<th width="200">邮件发送模式</th>
				<td><ul class="single_list cc">
				     <li><label><input  name="mail_type" type="radio" value="1" checked><span>SMTP 函数发送</span></label></li>
				   </ul>
				</td>
				<td><div class="fun_tips">暂时只支持SMTP模式
				</div></td>
			</tr>
			<tr>
				<th>邮件服务器</th>
				<td><input name="host" type="text" class="input length_5" value="${config.host }"></td>
				<td><div class="fun_tips"></div></td>
			</tr>
			<tr>
				<th>邮件发送端口</th>
				<td><input name="port" type="text" class="input length_5" value="${config.port }"></td>
				<td><div class="fun_tips">默认为25</div></td>
			</tr>
			<tr>
				<th>发件人名称</th>
				<td><input name="from" type="text" class="input length_5" value="${config.from }"></td>
				<td><div class="fun_tips"></div></td>
			</tr>
			<tr>
				<th>发件人地址</th>
				<td><input name="username" type="text" class="input length_5" value="${config.username }"></td>
				<td><div class="fun_tips"></div></td>
			</tr>
			<tr>
				<th>AUTH LOGIN验证</th>
				<td>
				   <ul class="single_list cc">
				     <li><label><input  name="auth" type="radio" value="true" <c:if test="${config.auth eq 'true'}">checked</c:if>><span>开启</span></label></li>
					 <li><label><input  name="auth" type="radio" value="false" <c:if test="${config.auth eq 'false'}">checked</c:if>><span>关闭</span></label></li>
				   </ul>
				</td>
				<td><div class="fun_tips"></div></td>
			</tr>
			<tr>
				<th>用户名</th>
				<td><input name="username" type="text" class="input length_5"  value="${config.username }"></td>
				<td><div class="fun_tips"></div></td>
			</tr>
			<tr>
				<th>密码</th>
				<td><input name="password" type="password" class="input length_5 mr5" value="${config.password }"></td>
				<td><div class="fun_tips"></div></td>
			</tr>
			
			

	</table>
</div>


<div class="btn_wrap">
	<div class="btn_wrap_pd">
		<button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">提交</button>
	</div>
</div>

</form>
</div>
<script>YJD.use('AppAdminCommon');</script>
</body>